package com.walk.zworld.ui.adapter

import android.content.Context
import com.bumptech.glide.Glide
import com.walk.zworld.view.banner.BannerImageAdapter
import com.base.lib.httpUtils.Banner

/**
 * Banner适配器
 * 2021-1-6.
 */
open class ImageAdapter(private val context: Context, imgList: List<Banner>) :
    BannerImageAdapter<Banner>(imgList) {

    override fun onBindView(holder: BannerImageHolder?, data: Banner?, position: Int, size: Int) {

        Glide.with(holder?.itemView!!.context).load(data?.imagePath).into(holder.imageView)
    }

}